package com.sixth.service.impl;

import com.sixth.dao.StatDao;
import com.sixth.entity.Stat;
import com.sixth.service.StatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: Keyboard-5
 * @description:
 * @author: 老范
 * @create: 2022-01-17 17:36
 **/
@Service
public class StatServiceImpl implements StatService {
    @Autowired
    private StatDao statDao;

    //查询客户地区统计数据
    @Override
    public List<Stat> loadCustomerAreaStat() {
        return statDao.queryCustomerAreaStat();
    }
    //查询公司年度月份销售额数据
    @Override
    public List<Double> loadCompanyYearGradeStatList(String year) {
        return statDao.queryCompanyYearGradeStat(year);
    }
    //查询业务员年度销售额统计数据
    @Override
    public List<Stat> loadOpernameYearGradeStatList(String year) {
        return statDao.queryOpernameYearGradeStat(year);
    }
}
